package com.fr.staticTest;
/**
 * base static
 * test static
 * base constructor
 * test constructor
 * 
 * 优先加载静态块
 * 子类的构造方法，super()
 * */

public class Test extends Base{
	 
    static{
        System.out.println("test static");
    }
     
    public Test(){
        System.out.println("test constructor");
    }
     
    public static void main(String[] args) {
        new Test1();
    }
}
 
class Base{
     
    static{
        System.out.println("base static");
    }
     
    public Base(){
        System.out.println("base constructor");
    }
}